home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10175 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: inforamp.net!ts26-11
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What is a test harness?
  5. Date: Wed, 06 Mar 96 07:34:00 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4hjf4v$elu@sam.inforamp.net>
  8. References: <313C00F0.51B5@bhp.com.au>
  9. NNTP-Posting-Host: ts26-11.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <313C00F0.51B5@bhp.com.au>, bowen.richard.rw@bhp.com.au wrote:
  13. >What is a test harness and how can you use it to test a class?
  14.  
  15. Especially in big projects, some classes are developed before the classes that 
  16. use them are developed.  On one project last fall, I was responsible for 
  17. writing 20 dialogs, another person wrote 20 dialog and yet another person 
  18. wrote the main window.  Since the main application was not ready, I could not 
  19. link my dialogs to anything to test them.  Therefor, I created a small 
  20. test front-end.  The test front-end was a screen with a button to execute the 
  21. dialog and a few controls to input the parameters that are passes to the 
  22. dialog.  When the dialog terminated the output was displayed in test 
  23. front-end.  Thus, I was able to fully test the dialog without actually linking 
  24. it to the application.  This test front-end is called a harness.  Basically a 
  25. program that allows you to test components (and classes) of an application 
  26. without linking the components to the application.
  27.  
  28. Tell me if you don't understand my explanation.  I tried not to act like a 
  29. dictionary.
  30.  
  31. Agrivar
  32.